package com.bbzn.device.client.dao.audit;

import com.bbzn.device.client.dataobject.LeaveForm;
import java.util.Date;
import java.util.List;

import com.bbzn.device.client.dto.audit.LeaveFormDTO;
import org.apache.ibatis.annotations.Param;

public interface LeaveFormMapper {
    /**
     * delete by primary key
     * @param formId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long formId);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(LeaveForm record);

    int insertOrUpdate(LeaveForm record);

    int insertOrUpdateSelective(LeaveForm record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(LeaveForm record);

    /**
     * select by primary key
     * @param formId primary key
     * @return object by primary key
     */
    LeaveForm selectByPrimaryKey(Long formId);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(LeaveForm record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(LeaveForm record);

    List<LeaveForm> findByAll(LeaveForm leaveForm);

    int updateBatch(List<LeaveForm> list);

    int updateBatchSelective(List<LeaveForm> list);

    int batchInsert(@Param("list") List<LeaveForm> list);

    List<LeaveForm> selectPageBySelective(LeaveFormDTO record);

    int selectCountBySelective(LeaveFormDTO record);

}